package day020;

import java.io.FileNotFoundException;
import java.io.PrintStream;

public class PrintStreamDemo {
    public static void main(String[] args) throws FileNotFoundException {
        PrintStream ps = new PrintStream("D:\\day020\\print.txt");

        ps.println(123);
        ps.println(true);
        ps.println("abc");

        ps.close();
    }
}
